package http;

public interface IHTTPListener<T> {

	/**
	 * 请求成功后的回调
	 * @param req
	 * @param result
	 */
	void onSuccess(Object req, T result);
	
	/**
	 * 请求异常后的回调
	 * @param req
	 * @param e
	 */
	void onException(Object req, HTTPException e);
}
